//
//  GlobalTools.h
//  FancyForum
//
//  Created by ChaiJun on 15-1-31.
//  Copyright (c) 2015年 Pinssible Labs. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface TimeUtils : NSObject

+ (NSString *)daysFromTodayByTime:(NSDate *)pastTime;

+ (NSString *)NSDateToNSStringReformer:(NSDate *)date;

+ (NSString *)ageByTime:(NSDate *)createdTime;

+ (NSString *)timeLeft:(NSUInteger)miliSeconds;

+ (NSInteger)daysFromToday:(NSDate *)pastTime;

+ (NSString *)stringFromDate:(NSDate *)date;

+ (NSDate *)dateFromString:(NSString *)string;

+ (NSNumber *)secondsFromGMT;

@end
